package org.westos.ChinaSoft2;

public class AbstructFactory {

    public Object getObject(String name){
        Object Factory=null;
        if (name==null){
            Factory=null;
        }
        if (name=="water"){
            Factory=new WaterFactory();
        }
        if (name=="food"){
            Factory=new GoodsFactory();
        }
        return Factory;
    }

}
